<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>OCCI Tasks Extension</title><meta name="generator" content="DocBook XSL-NS Stylesheets V1.75.2"/></head><body><div class="article" title="OCCI Tasks Extension"><div class="titlepage"><div><div><h1 class="title"><a id="id36063441"/>OCCI Tasks Extension</h1></div><div><div class="author"><h3 class="author"><span class="orgname">OCCI-WG</span></h3></div></div><div><p class="pubdate">2009-09-15</p></div></div><hr/></div><div class="section" title="Overview"><div class="titlepage"><div><div><h2 class="title"><a id="id36063463"/>Overview</h2></div></div></div><p>Asynchronous operations ("tasks") immediately return HTTP
    <code class="computeroutput">202 Accepted</code> with a
    <code class="computeroutput">Location:</code> header pointing to a simple
    task [sub]resource. This allows tasks to be monitored
    (<code class="computeroutput">GET</code>), updated
    (<code class="computeroutput">PUT</code>) and canceled
    (<code class="computeroutput">DELETE</code>). Completed tasks
    <span class="emphasis"><em>may</em></span> be deleted immediately, after a reasonable period
    of time (allowing clients to retrieve status) or retained indefinitely for
    audit purposes.</p><p>The collection of tasks for a given resource (including the
    entry-point itself for global tasks) is advertised under the
    <code class="computeroutput">http://purl.org/occi#tasks</code> link relation
    and new tasks should be submitted via HTTP
    <code class="computeroutput">POST</code> to the supplied
    <code class="computeroutput">href</code>.</p><div class="table"><a id="id36063508"/><p class="title"><b>Table 1. Task Attributes</b></p><div class="table-contents"><table summary="Task Attributes" border="1"><colgroup><col style="text-align: center"/><col/><col/></colgroup><thead><tr><th style="text-align: left">Attribute</th><th>Type</th><th>Description</th></tr></thead><tbody><tr><td style="text-align: left"><code class="computeroutput">task.type</code></td><td>Token</td><td>Task type (e.g.
            <code class="computeroutput">backup</code>)</td></tr><tr><td style="text-align: left"><code class="computeroutput">task.sub-type</code></td><td>Token</td><td>Task sub-type (e.g.
            <code class="computeroutput">incremental</code>)</td></tr><tr><td style="text-align: left"><code class="computeroutput">task.schedule[i]</code></td><td>String</td><td>Task schedule (e.g. "<code class="computeroutput">every Friday at
            21:00</code>")</td></tr></tbody></table></div></div><br class="table-break"/></div><div class="bibliography" title="Bibliography"><div class="titlepage"><div><div><h2 class="title"><a id="id36063604"/>Bibliography</h2></div></div></div><div class="bibliomixed"><a id="id36063607"/><p class="bibliomixed">Normative References</p></div><div class="bibliomixed"><a id="id36063610"/><p class="bibliomixed">Informative References</p></div></div></div></body></html>
